package team.first.movieapiv1pro.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author: HAPPY 
 * @Project_name: project
 * @Package_name: team.first.movieapiv1pro.domain
 * @Date: 2021/11/25 11:01
 * @Description：
 */
@ApiModel(value="genre")
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "genre")
public class Genre implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="电影类型编号", example = "2")
    private Integer id;

    @TableField(value = "name")
    @ApiModelProperty(value="电影类型名称", example = "喜剧")
    private String name;

    private static final long serialVersionUID = 1L;
}